Only allow DOMCTL_max_vcpus to increase vcpus from zero.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 23 Jun 2009 10:10:29 +0000 (11:10 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 23 Jun 2009 10:10:29 +0000 (11:10 +0100)
commit7177df727886942faf2eb78c4fe2edf9a9be8e58
tree4c28e84e841f9b30109796c811ccf107201bac6c
parent476bbccc811ca7cd82195749a8846e94a4d56fb6
Only allow DOMCTL_max_vcpus to increase vcpus from zero.

Otherwise reallocation of the vcpus array is unsafe.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/common/domctl.c